@echo off
echo 测试Java代码编译
echo ==================

echo.
echo 1. 清理并重新编译项目...
cd backend
mvn clean compile

echo.
echo 2. 检查编译结果...
if exist "target\classes\com\company\anr\service\WebAutomationService.class" (
    echo ✅ WebAutomationService.class 编译成功！
) else (
    echo ❌ WebAutomationService.class 编译失败！
)

echo.
echo 3. 检查其他类文件...
if exist "target\classes\com\company\anr\controller\AnalysisController.class" (
    echo ✅ AnalysisController.class 编译成功！
) else (
    echo ❌ AnalysisController.class 编译失败！
)

echo.
echo 编译测试完成！
echo.
echo 按任意键关闭...
pause > nul
